package org.example.service;

import org.example.entity.SysSpec;
import org.example.mapper.SysSpecMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysSpecService {
    @Resource
    private SysSpecMapper sysSpecMapper;
    //拿数据
    public List<SysSpec> getSpec(){
        return sysSpecMapper.getSpec();
    }
    //删除数据
    public void deleteSpecById(long id){
        sysSpecMapper.deleteSpecById(id);
    }
    //拿spec规格下的子菜单数据
    public List<SysSpec> specValue(){
        return sysSpecMapper.specValue();
    }
    //编辑数据回显
    public SysSpec getById(long id)
    {
        return sysSpecMapper.getById(id);
    }


}
